package com.peanut.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.peanut.domain.bo.TabCarSeriesBO;
import com.peanut.dto.TabCarAgeDTO;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TabSeriesMapper extends BaseMapper<TabCarSeriesBO> {
    @Select("SELECT b.id ,s.car_series_name,from tab_car_series b LEFT JOIN ab_car_series s on b.id=s.id ")
    List<TabCarSeriesBO> selectAlls();
    @Select("SELECT b.id ,s.car_series_name,from tab_car_brand b LEFT JOIN tab_car_series s on b.id=s.id ${ew.customSqlSegment}")
    List<TabCarSeriesBO> selectAllLike(QueryWrapper<TabCarAgeDTO> queryWrapper);
}
